package net.mcreator.mcreatordetector.procedures;

import net.neoforged.fml.ModList;
import net.neoforged.neoforgespi.language.ModFileScanData;

public class HasMCRDirProcedure {
	public static boolean execute(String ModID) {
		var m = ModList.get().getModFileById(ModID);
		if(m == null){return false;}
		for(ModFileScanData.ClassData r: m.getFile().getScanResult().getClasses()){
			if (r.clazz().getClassName().contains(".procedures.") || r.clazz().getClassName().contains("mcreator")){
				return true;
			}
		}
		return false;
	}
}